import request from '@/plugins/request/system';
import request2 from '@/plugins/request/system/index2'

/**
 * 登录管理
 * @param data
 * @constructor
 */
export function SystemLogin (data) {
  return request({
    url: '/systemv1/login/login',
    method: 'post',
    data
  });
}

/**
 * 管理退出登录
 * @param data
 * @constructor
 */
export function SystemLogout (data) {
  return request({
    url: '/systemv1/admin/logout',
    method: 'post',
    data
  });
}

export function getUserLogin (data) {
  return request2({
    url: '/apiv2/user/getUserLogin',
    method: 'post',
    data
  });
}
export function addUserLogin (data) {
  return request2({
    url: '/apiv2/user/addUserLogin',
    method: 'post',
    data
  });
}
